using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace LinqHelper.Entity
{
	[Table(Name = "Tours")]
	public class LqToursEntity
	{
		Guid _Id;
		
		[Column(DbType = "uniqueidentifier NOT NULL", IsPrimaryKey = true)]
        public Guid Id
        {
            set
            {
                _Id = value;
            }
            get
            {
                return _Id;
            }
        }
        
		Guid _CatId;
		
		[Column(DbType = "uniqueidentifier NOT NULL", IsPrimaryKey = false)]
        public Guid CatId
        {
            set
            {
                _CatId = value;
            }
            get
            {
                return _CatId;
            }
        }
        
		string _TourId;
		
		[Column(DbType = "varchar(512) NOT NULL", IsPrimaryKey = false)]
        public string TourId
        {
            set
            {
                _TourId = value;
            }
            get
            {
                return _TourId;
            }
        }
        
		string _TourName;
		
		[Column(DbType = "nvarchar(512) NOT NULL", IsPrimaryKey = false)]
        public string TourName
        {
            set
            {
                _TourName = value;
            }
            get
            {
                return _TourName;
            }
        }
        
		decimal _Cost;
		
		[Column(DbType = "money NOT NULL", IsPrimaryKey = false)]
        public decimal Cost
        {
            set
            {
                _Cost = value;
            }
            get
            {
                return _Cost;
            }
        }
        
		string _Photos;
		
		[Column(DbType = "varchar(512) NOT NULL", IsPrimaryKey = false)]
        public string Photos
        {
            set
            {
                _Photos = value;
            }
            get
            {
                return _Photos;
            }
        }
        
		string _TourInfo;
		
		[Column(DbType = "nvarchar(1024) NOT NULL", IsPrimaryKey = false)]
        public string TourInfo
        {
            set
            {
                _TourInfo = value;
            }
            get
            {
                return _TourInfo;
            }
        }
        
		string _TourDetail;
		
		[Column(DbType = "nvarchar(4000) NOT NULL", IsPrimaryKey = false)]
        public string TourDetail
        {
            set
            {
                _TourDetail = value;
            }
            get
            {
                return _TourDetail;
            }
        }
        
		DateTime _CreatedDate;
		
		[Column(DbType = "datetime NOT NULL", IsPrimaryKey = false)]
        public DateTime CreatedDate
        {
            set
            {
                _CreatedDate = value;
            }
            get
            {
                return _CreatedDate;
            }
        }
        
		string _CreatedBy;
		
		[Column(DbType = "varchar(50) NOT NULL", IsPrimaryKey = false)]
        public string CreatedBy
        {
            set
            {
                _CreatedBy = value;
            }
            get
            {
                return _CreatedBy;
            }
        }
        
	}
}
